package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Category;
import com.itheima.reggie.domain.Dish;

import java.util.List;

public interface DishService {
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);

    void save(Dish dish);

    Dish findById(Long id);

    void updateDish(Dish dish);

    ResultInfo updateDishStatus(int status, Long[] ids);

    ResultInfo deleteDish(String[] ids);

    List<Dish> findByCategoryId(Long categoryId);

    List<Dish> findByName(String name);
}
